{assign var=formId value='list'}
<div id="content">
    <div class="highlight">
        {$menu}
        {include file="admin/toolbar.temp.html" title=toolbar}
        <div class="searchType">
        <form action="{$base_url}" method="post" name="searchuser" id="searchuser">
            <fieldset>
                <h3>{l s='search_for'}</h3>
                <p>
                    <label>{l s='keyword'}</label>
                    <input type="text" id="searchTerms" name="searchTerms" value="{if isset($searchTerms)}{$searchTerms}{/if}"/>
                    <label>{l s='status'}</label>
                    <select id="searchStatus" name="searchStatus">
                    	<option value="-1">{l s='all'}</option>
                    	{$listStatus}
                    </select>
                    <input type="hidden" id="op"  name="op" value="{$op}" />
                    <input type="hidden" id="act" name="act" value="{$act}" />
                    <input type="hidden" id="pid" name="pid" value="{$pid}" />
                    <input type="submit" value="{l s='display'}" title="{l s='display'}" name="btnDisplay" class="btnDisplay" />
                </p>
            </fieldset>
        </form>
        </div>
        {if isset($infoText)}
        <div class="{$infoClass}">
            <h4>{l s='Result'}:</h4>
            <p>{$infoText}</p>
        </div>
        {/if}
        <form id="{$formId}" name="{$formId}" action="{$base_url}" method="post">
            <div class="tableContent">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <thead>
                        <tr>
                            <th><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('{$formId}');" /></th>
                            <th>{l s='id'}</th>
                            <th>{l s='username'}</th>
                            <th>{l s='fullname'}</th>
                            <th>{l s='about'}</th>
                            <th>{l s='status'}</th>
                            <th>{l s='actions'}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {if $listObjects}
                            {assign var=i value=$listObjects.pages.start}
                            {foreach from=$listObjects.data item=object}
                                {assign var=i value=$i+1}
                                <tr{if $i%2 == 0} class="bgType"{/if}>
                                    <td><input class="box3" type="checkbox" name="oIds[]" value="{$object->getField('id')}" /></td>
                                    <td>{$object->getField('id')}</td>
                                    <td>{$object->getField('username')}</td>
                                    <td>{$object->getFieldLangAdmin($lang,'name')}</td>
                                    <td>{$object->getFieldLangAdmin($lang,'about')}</td>
                                    <td>{if $object->isDeleted()}<span style="color: #FF0000">{$object->getStatusText()}</span>{else}{$object->getStatusText()}{/if}</td>
                                    <td>
                                        {include file="admin/action.temp.html" title=action}
                                    </td>
                                </tr>
                            {/foreach}
                        {/if}
                    </tbody>
                </table>
                <div class="paging">
                    <p class="btnType">
                        <input type="hidden" id="op" name="op" value="{$op}" />       
                        <input type="hidden" id="act" name="act" value="{$act}" />
                        <input type="hidden" id="pid" name="pid" value="{$pid}" />
                        <input type="hidden" id="searchTerms" name="searchTerms" value="{$searchTerms}"/>
                        <input type="hidden" id="searchStatus" name="searchStatus" value="{$searchStatus}"/>
                        <input type="hidden" id="orderBy" name="orderBy" value="{$orderBy}"/>
                        <input type="hidden" id="orderDir" name="orderDir" value="{$orderDir}"/>
                        <input type="hidden" id="page" name="page" value="{$page}"/>
                        <input type="hidden" id="oId" name="oId" value=""/>
                        <input type="hidden" id="position" name="position" value=""/>
                        <input type="hidden" id="plus" name="plus" id="plus" value=""/>                        
                    </p>
					{include file="admin/paging.temp.html" title=paging}
                </div>
            </div>
        </form>
    </div>
</div>